home *** CD-ROM | disk | FTP | other *** search
-
-
-
- CCCCoooommmmppppoooossssiiiitttteeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV CCCCoooommmmppppoooossssiiiitttteeee((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _C_o_m_p_o_s_i_t_e - The Composite widget class
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #_i_n_c_l_u_d_e <_X_m/_X_m._h>
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- Composite widgets are intended to be containers for other
- widgets and can have an arbitrary number of children. Their
- responsibilities (implemented either directly by the widget
- class or indirectly by Intrinsics functions) include:
-
- +o Overall management of children from creation to
- destruction.
-
- +o Destruction of descendants when the composite widget is
- destroyed.
-
- +o Physical arrangement (geometry management) of a
- displayable subset of managed children.
-
- +o Mapping and unmapping of a subset of the managed
- children. Instances of composite widgets need to
- specify the order in which their children are kept.
- For example, an application may want a set of command
- buttons in some logical order grouped by function, and
- it may want buttons that represent filenames to be kept
- in alphabetical order.
-
- CCCCllllaaaasssssssseeeessss
- Composite inherits behavior and resources from _C_o_r_e.
-
- The class pointer is _c_o_m_p_o_s_i_t_e_W_i_d_g_e_t_C_l_a_s_s.
-
- The class name is _C_o_m_p_o_s_i_t_e.
-
- NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss
- The following table defines a set of widget resources used
- by the programmer to specify data. The programmer can also
- set the resource values for the inherited classes to set
- attributes for this widget. To reference a resource by name
- or by class in a .Xdefaults file, remove the _X_m_N or _X_m_C
- prefix and use the remaining letters. To specify one of the
- defined values for a resource in a .Xdefaults file, remove
- the _X_m prefix and use the remaining letters (in either
- lowercase or uppercase, but include any underscores between
- words). The codes in the access column indicate if the
- given resource can be set at creation time (C), set by using
- _X_t_S_e_t_V_a_l_u_e_s (S), retrieved by using _X_t_G_e_t_V_a_l_u_e_s (G), or is
- not applicable (N/A).
-
- CCCCoooommmmppppoooossssiiiitttteeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- CCCCoooommmmppppoooossssiiiitttteeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV CCCCoooommmmppppoooossssiiiitttteeee((((3333XXXX))))
-
-
-
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ______________________________________________________________________
- XmNchildren XmCReadOnly WidgetList NULL G
- XmNinsertPosition XmCInsertPosition XtOrderProc NULL CSG
- XmNnumChildren XmCReadOnly Cardinal 0 G
-
-
- _X_m_N_c_h_i_l_d_r_e_n
- A read-only list of the children of the widget.
-
- _X_m_N_i_n_s_e_r_t_P_o_s_i_t_i_o_n
- Points to the _X_t_O_r_d_e_r_P_r_o_c function described below.
-
- _X_m_N_n_u_m_C_h_i_l_d_r_e_n
- A read-only resource specifying the length of the list
- of children in _X_m_N_c_h_i_l_d_r_e_n.
-
- The following procedure pointer in a composite widget
- instance is of type _X_t_O_r_d_e_r_P_r_o_c: Cardinal (* XtOrderProc)
- (wwwwiiiiddddggggeeeetttt)
- _W_i_d_g_e_t wwww;
-
- wwww Specifies the widget.
-
- Composite widgets that allow clients to order their children (usually
- homogeneous boxes) can call their widget instance's insert_position
- procedure from the class's insert_child procedure to determine where a new
- child should go in its children array. Thus, a client of a composite class
- can apply different sorting criteria to widget instances of the class,
- passing in a different insert_position procedure when it creates each
- composite widget instance.
-
- The return value of the insert_position procedure indicates how many children
- should go before the widget. Returning zzzzeeeerrrroooo indicates that the
- widget should go before all other children; returning num_children indicates
- that it should go after all other children. The default insert_position
- function returns num_children and can be overridden by a specific composite
- widget's resource list or by the argument list provided when the composite
- widget is created.
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss
- Composite inherits behavior and resources from the following
- superclass. For a complete description of each resource,
- refer to the manual page for that superclass.
-
- CCCCoooorrrreeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ______________________________________________________________________________________________________________
- XmNaccelerators XmCAccelerators XtAccelerators dynamic CSG
- XmNancestorSensitive XmCSensitive Boolean dynamic G
-
-
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-
-
-
- CCCCoooommmmppppoooossssiiiitttteeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV CCCCoooommmmppppoooossssiiiitttteeee((((3333XXXX))))
-
-
-
- XmNbackground XmCBackground Pixel dynamic CSG
- XmNbackgroundPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderColor XmCBorderColor Pixel XtDefaultForeground CSG
- XmNborderPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderWidth XmCBorderWidth Dimension 1 CSG
- XmNcolormap XmCColormap Colormap dynamic CG
- XmNdepth XmCDepth int dynamic CG
- XmNdestroyCallback XmCCallback XtCallbackList NULL C
- XmNheight XmCHeight Dimension dynamic CSG
- XmNinitialResourcesPersistent XmCInitialResourcesPersistent Boolean True C
- XmNmappedWhenManaged XmCMappedWhenManaged Boolean True CSG
- XmNscreen XmCScreen Screen * dynamic CG
- XmNsensitive XmCSensitive Boolean True CSG
- XmNtranslations XmCTranslations XtTranslations dynamic CSG
- XmNwidth XmCWidth Dimension dynamic CSG
- XmNx XmCPosition Position 0 CSG
- XmNy XmCPosition Position 0 CSG
-
-
- TTTTrrrraaaannnnssssllllaaaattttiiiioooonnnnssss
- There are no translations for Composite.
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _C_o_r_e(_3_X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 3 (printed 11/11/03)
-
-
-
-